home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Telnet
/
NCSA
/
tn3270 2.4d7 source
/
tn3270
/
makefile
< prev
next >
Wrap
Makefile
|
1992-04-18
|
10KB
|
314 lines
#
# tn3270 for the Macintosh Source Code
# Brown University Computing and Information Services
# Version 2.4d7 April, 1992
# Copyright (c) 1988, 1989, 1990, 1991, 1992 by Brown University and by
# Peter John DiCamillo.
#
# Permission is granted to any individual or institution to use, copy,
# or redistribute the binary version of this software and its
# documentation provided this notice and the copyright notices are
# retained. Permission is granted to any individual or non-profit
# institution to use, copy, modify, or redistribute the source files
# of this software provided this notice and the copyright notices are
# retained. This software may not be distributed for profit, either
# in original form or in derivative works, nor can the source be
# distributed to other than an individual or a non-profit institution.
# Any individual or group interested in seeing and/or using these
# source files but who are prevented from doing so by the above
# constraints should contact Don Wolfe, Assistant Vice-President for
# Computer Systems at Brown University, (401) 863-7250, for possible
# software licensing of the source developed at Brown.
#
# Brown University and Peter John DiCamillo make no representations
# about the suitability of this software for any purpose.
#
# BROWN UNIVERSITY AND PETER JOHN DICAMILLO GIVE NO WARRANTY, EITHER
# EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION PROVIDED,
# INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY AND
# WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
#
# control variables
ObjDir = ":obj:"
RscDir = ":rsc:"
LinkOpts = -msg multiple,warn,nodup
ToolLinkOpts =
COpts = -r -mbg full
DumpOpts = -d USEDUMP
AsmOpts =
TCPHdrDir = "{MPW}NCSA/BYU tcpip:"
TCPLibDir = "{MPW}NCSA/BYU tcpip:"
DNRDir = "{MPW}Libraries:Libraries:"
AllDepend =
# AllDepend = makefile
DumpDepend = maclib.h termdef.h tn3270funcs.h globals.h
GlobalDepend = {DumpDepend} tn3270DumpFile
# file list variables
CommonObj = {ObjDir}grafterm.c.o ∂
{ObjDir}api.c.o ∂
{ObjDir}apistg.c.o ∂
{ObjDir}attnmenu.c.o ∂
{ObjDir}bgproc.a.o ∂
{ObjDir}cdialog.c.o ∂
{ObjDir}crcf.c.o ∂
{ObjDir}dialogs.c.o ∂
{ObjDir}globals.c.o ∂
{ObjDir}hndkbd.c.o ∂
{ObjDir}kbtab.c.o ∂
{ObjDir}menu.c.o ∂
{ObjDir}prt.c.o ∂
{ObjDir}saio.c.o ∂
{ObjDir}scrap.c.o ∂
{ObjDir}serscrn.c.o ∂
{ObjDir}settings.c.o ∂
{ObjDir}sppc.c.o ∂
{ObjDir}switcher.c.o ∂
{ObjDir}util.c.o ∂
{ObjDir}vmxfer.c.o ∂
{ObjDir}writescr.c.o ∂
{ObjDir}writesf.c.o ∂
{ObjDir}writetm.c.o
# rules for creating object code files
# tool programs:
{ObjDir}addsw.c.o ƒ {AllDepend} maclib.h addsw.c
C {COpts} addsw.c -o {ObjDir}addsw.c.o
{ObjDir}genattn.c.o ƒ {AllDepend} maclib.h genattn.c
C {COpts} genattn.c -o {ObjDir}genattn.c.o
{ObjDir}genktab.c.o ƒ {AllDepend} genktab.c
C {COpts} genktab.c -o {ObjDir}genktab.c.o
# object code common to all versions:
{ObjDir}api.c.o ƒ {AllDepend} {GlobalDepend} sppc.h telnet.h api.c
C {COpts} {DumpOpts} api.c -o {ObjDir}api.c.o
{ObjDir}apistg.c.o ƒ {AllDepend} {GlobalDepend} apistg.c
C {COpts} {DumpOpts} apistg.c -o {ObjDir}apistg.c.o
{ObjDir}attnmenu.c.o ƒ {AllDepend} {GlobalDepend} attnmenu.c
C {COpts} {DumpOpts} attnmenu.c -o {ObjDir}attnmenu.c.o
{ObjDir}bgproc.a.o ƒ {AllDepend} bgproc.a
Asm {AsmOpts} bgproc.a -o {ObjDir}bgproc.a.o
{ObjDir}cdialog.c.o ƒ {AllDepend} {GlobalDepend} cdialog.c
C {COpts} {DumpOpts} cdialog.c -o {ObjDir}cdialog.c.o
{ObjDir}crcf.c.o ƒ {AllDepend} crcf.c
C {COpts} crcf.c -o {ObjDir}crcf.c.o
{ObjDir}dialogs.c.o ƒ {AllDepend} {GlobalDepend} dialogs.c
C {COpts} {DumpOpts} dialogs.c -o {ObjDir}dialogs.c.o
{ObjDir}globals.c.o ƒ {AllDepend} maclib.h termdef.h globals.c
C {COpts} {DumpOpts} globals.c -o {ObjDir}globals.c.o
{ObjDir}grafterm.c.o ƒ {AllDepend} {GlobalDepend} telnet.h grafterm.c
C {COpts} {DumpOpts} grafterm.c -o {ObjDir}grafterm.c.o
{ObjDir}hndkbd.c.o ƒ {AllDepend} {GlobalDepend} hndkbd.c
C {COpts} {DumpOpts} hndkbd.c -o {ObjDir}hndkbd.c.o
{ObjDir}kbtab.c.o ƒ {AllDepend} genktab keycodes.memo
genktab keycodes.memo
Delete kbnames.new
Delete -i kbtab.c
Rename kbtables.new kbtab.c
C {COpts} kbtab.c -o {ObjDir}kbtab.c.o
{ObjDir}menu.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h menu.c ∂
{TCPHdrDir}netevent.h ∂
{TCPHdrDir}hostform.h
C {COpts} {DumpOpts} -i {TCPHdrDir} menu.c -o {ObjDir}menu.c.o
{ObjDir}prt.c.o ƒ {AllDepend} {GlobalDepend} prt.c
C {COpts} {DumpOpts} prt.c -o {ObjDir}prt.c.o
{ObjDir}saio.c.o ƒ {AllDepend} {GlobalDepend} saio.c
C {COpts} {DumpOpts} saio.c -o {ObjDir}saio.c.o
{ObjDir}scrap.c.o ƒ {AllDepend} {GlobalDepend} scrap.c
C {COpts} {DumpOpts} scrap.c -o {ObjDir}scrap.c.o
{ObjDir}serscrn.c.o ƒ {AllDepend} {GlobalDepend} serscrn.c
C {COpts} {DumpOpts} serscrn.c -o {ObjDir}serscrn.c.o
{ObjDir}settings.c.o ƒ {AllDepend} {GlobalDepend} settings.c
C {COpts} {DumpOpts} settings.c -o {ObjDir}settings.c.o
{ObjDir}sppc.c.o ƒ {AllDepend} sppcinterface.h sppc.c
C {COpts} sppc.c -o {ObjDir}sppc.c.o
{ObjDir}switcher.c.o ƒ {AllDepend} {GlobalDepend} switcher.c
C {COpts} {DumpOpts} switcher.c -o {ObjDir}switcher.c.o
{ObjDir}util.c.o ƒ {AllDepend} {GlobalDepend} util.c
C {COpts} {DumpOpts} util.c -o {ObjDir}util.c.o
{ObjDir}vmxfer.c.o ƒ {AllDepend} {GlobalDepend} vmxfer.c
C {COpts} {DumpOpts} vmxfer.c -o {ObjDir}vmxfer.c.o
{ObjDir}writescr.c.o ƒ {AllDepend} {GlobalDepend} writescr.c
C {COpts} {DumpOpts} writescr.c -o {ObjDir}writescr.c.o
{ObjDir}writesf.c.o ƒ {AllDepend} {GlobalDepend} writesf.c
C {COpts} {DumpOpts} writesf.c -o {ObjDir}writesf.c.o
{ObjDir}writetm.c.o ƒ {AllDepend} {GlobalDepend} writetm.c
C {COpts} {DumpOpts} writetm.c -o {ObjDir}writetm.c.o
# object code for specific versions
{ObjDir}serstub.c.o ƒ {AllDepend} {GlobalDepend} serstub.c
C {COpts} {DumpOpts} serstub.c -o {ObjDir}serstub.c.o
{ObjDir}tcpio.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h tcpio.c ∂
{TCPHdrDir}netevent.h ∂
{TCPHdrDir}kip.h ∂
{TCPHdrDir}hostform.h
C {COpts} {DumpOpts} -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpio.c.o
{ObjDir}tcpiodrv.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h tcpio.c ∂
{TCPHdrDir}netevent.h ∂
{TCPHdrDir}kip.h ∂
{TCPHdrDir}hostform.h
C {COpts} {DumpOpts} -d TCPDRV -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpiodrv.c.o
{ObjDir}tcpevent.c.o ƒ {AllDepend} {GlobalDepend} NCSAfuncs.h tcpevent.c ∂
{TCPHdrDir}netevent.h ∂
{TCPHdrDir}hostform.h
C {COpts} {DumpOpts} -i {TCPHdrDir} tcpevent.c -o {ObjDir}tcpevent.c.o
{ObjDir}telnet.c.o ƒ {AllDepend} {GlobalDepend} telnet.h telnet.c
C {COpts} {DumpOpts} telnet.c -o {ObjDir}telnet.c.o
# resource files common to all versions:
CommonRsc = {RscDir}general {RscDir}attnmap {RscDir}fonts ∂
{RscDir}icons version.r
# rules for creating resource files
{RscDir}general ƒ {AllDepend} general.r
Rez general.r -o {RscDir}general
attnmap.r ƒ genattn
Delete -i attnmap.r
genattn
Confirm "Select 'Save' in genattn, then click here"
Rename attnmap.r.new attnmap.r
{RscDir}attnmap ƒ {AllDepend} attnmap.r
Rez attnmap.r -o {RscDir}attnmap
{RscDir}fonts ƒ {AllDepend} fonts.r
Rez fonts.r -o {RscDir}fonts
{RscDir}icons ƒ {AllDepend} icons.r
Rez icons.r -o {RscDir}icons
# rules for creating tool program
addsw ƒƒ {AllDepend} {ObjDir}addsw.c.o
Delete -i addsw
Link -d -t MPST -c 'MPS ' {ToolLinkOpts} ∂
{ObjDir}addsw.c.o ∂
"{CLibraries}"StdClib.o ∂
"{Libraries}"Stubs.o ∂
"{Libraries}"Runtime.o ∂
"{Libraries}"Interface.o ∂
-o addsw
genattn ƒƒ {AllDepend} {ObjDir}genattn.c.o
Delete -i genattn
Link -t APPL -c '????' {LinkOpts} ∂
{ObjDir}genattn.c.o ∂
"{CLibraries}"StdClib.o ∂
"{Libraries}"Runtime.o ∂
"{Libraries}"Interface.o ∂
-o genattn
genktab ƒƒ {AllDepend} {ObjDir}genktab.c.o
Delete -i genktab
Link -d -c 'MPS ' -t MPST {ToolLinkOpts} ∂
{ObjDir}genktab.c.o ∂
"{CLibraries}"StdClib.o ∂
"{Libraries}"Stubs.o ∂
"{Libraries}"Runtime.o ∂
"{Libraries}"Interface.o ∂
-o genktab
# rules for creating dump file
tn3270DumpFile ƒ makedump.c {DumpDepend}
Delete -i tn3270DumpFile
C {COpts} makedump.c
Delete makedump.c.o
# rules for creating tn3270 versions
# MacTCP tn3270
tn3270drv ƒƒ {AllDepend} {CommonObj} ∂
{ObjDir}serstub.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
{CommonRsc} tcpdversion.r addsw
Delete -i tn3270drv
Link -mf -t APPL -c 'GFTM' {LinkOpts} {CommonObj} ∂
{ObjDir}serstub.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
"{CLibraries}"StdCLib.o ∂
"{Libraries}"Runtime.o ∂
"{Libraries}"Interface.o ∂
{TCPLibDir}tcplibd.o ∂
{DNRDir}dnr.c.o ∂
-o tn3270drv
Rez tcpdversion.r -a -o tn3270drv
addsw tn3270drv
Setfile -a BM tn3270drv
# NCSA tn3270
tn3270 ƒƒ {AllDepend} {CommonObj} ∂
{ObjDir}serstub.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
{CommonRsc} tcpversion.r addsw
Delete -i tn3270
Link -mf -t APPL -c 'GFTM' {LinkOpts} {CommonObj} ∂
{ObjDir}serstub.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
"{CLibraries}"StdCLib.o ∂
"{Libraries}"Runtime.o ∂
"{Libraries}"Interface.o ∂
{TCPLibDir}tcplib.ncsa.o ∂
-o tn3270
Rez tcpversion.r -a -o tn3270
addsw tn3270
Setfile -a BM tn3270
# MacTCP tn3270 testing version with large MF memory
tn3270test ƒƒ {AllDepend} {CommonObj} ∂
{ObjDir}serstub.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
{CommonRsc} tcpdversion.r addsw
Delete -i tn3270test
Link -mf -t APPL -c 'GFTM' {LinkOpts} {CommonObj} ∂
{ObjDir}serstub.c.o ∂
{ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
"{CLibraries}"StdCLib.o ∂
"{Libraries}"Runtime.o ∂
"{Libraries}"Interface.o ∂
{TCPLibDir}tcplibd.o ∂
{DNRDir}dnr.c.o ∂
-o tn3270test
Rez tcpdversion.r -a -o tn3270test
addsw tn3270test test
Setfile -a BM tn3270test